package com.maimao.core.utils;

/**
 * @author MaoLin Wang
 * @date 2021/4/11 3:25 下午
 */
public class NumUtils {

    public static boolean nullOrLteZero(Integer num) {
        if (num == null || num <= 0) {
            return true;
        }
        return false;
    }

    public static boolean anyNullOrLteZero(Integer... num) {
        for (Integer x : num) {
            if (x == null || x <= 0) {
                return true;
            }
        }
        return false;
    }
}
